home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TASMSWAN.ZIP
/
COPYSTR.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-07-17
|
636b
|
33 lines
%TITLE "Copy String external Turbo C function"
IDEAL
MODEL small
CODESEG
PUBLIC _copystring
%NEWPAGE
;-----------------------------------------------------------------------------
; void copystring(unsigned char far * source, unsigned char far * destination, int sourcelen)
;-----------------------------------------------------------------------------
PROC _copystring NEAR
ARG source:DWord, destination:DWord, sourcelen:Word
push bp
mov bp,sp
mov cx,[sourcelen]
jcxz @@99
push ds
les di,[destination]
lds si,[source]
cld
rep movsb
pop ds
@@99:
pop bp
ret
ENDP _copystring
END